package com.easyCode.util;

/**
 * @author 大忽悠
 * @create 2023/1/18 15:30
 */
public class DataSourceInfoUtils {
    public static String getDbName(String url) {
        String dbUrl = url.split("\\?")[0];
        return dbUrl.substring(dbUrl.lastIndexOf("/")+1);
    }
}
